<!--正规jsx-->
<script>
  export default {
    name: 'jsx',
    // functional: true, // jsx 函数式组件 (无状态组件,没有 this, 没有 data，没有methods)
    props: ["a","b","c"],
    data(){
      return {
        str:"str"
      }
    },
    methods: {
      divclick(a) {
        console.log(a)
        // console.log("点我一下b")
      },
    },
    render(h) {

      const divclick = ()=>{
        console.log("点我一下a")
      }

      return (<div style={{color:"red"}} onClick={()=>{this.divclick(this.a)}}>123</div>)
    },


  }
</script>

<style scoped>
  .sub-el-icon {
    color: currentColor;
    width: 1em;
    height: 1em;
  }
</style>
